package com.hw.one.dam2.dao;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;
import java.util.Map;

/**
 * Copyright 2017 汉威.智慧环保事业部
 * Created by 毛超然 on 2017/6/28 0009.
 */

public class GridMemberDao extends SqlSessionDaoSupport implements IGridMemberDao{


    /**
     * 根据区域编码，获取网络成员的信息
     * @param regionCode
     * @return
     * @throws Exception
     */
    @Override
    public List<Map<String,Object>> findGridMemberListMapByParentCode(String regionCode) throws Exception{
        return getSqlSession().getMapper(IGridMemberDao.class).findGridMemberListMapByParentCode(regionCode);
    }

    @Override
    public List<Map<String, Object>> findEnterpriseListByRegionCode(List<String> regionCodeList) {
        return getSqlSession().getMapper(IGridMemberDao.class).findEnterpriseListByRegionCode(regionCodeList);
    }
}
